package designpatterns.singleton;

/**
 * @description: 单例 饿汉模式
 * @author: Lidong
 * @time: 2020/7/21 20:19
 **/
public class HungrySingleton {

    private static final HungrySingleton hungrySingleton = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return hungrySingleton;
    }

}
